<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">联动列表</div>
    <button type="button" class="btn  btn-default" data-toggle="dialog" data-id="mydialog2" data-url="{:U('Itemgroup/add')}" data-title="添加分组" data-width="600" data-height="400">添加分组</button>

<!--
    <input type="button" onclick="doConfirmBatch('{:U('Itemgroup/del', array('batchFlag' =>1))}', '确实要删除选择项吗？')" class="btn_blue" value="删除">
-->
</div>
<div class="bjui-pageContent">
    <form action="{:U('Itemgroup/delAll')}" method="post" id="form_do" name="form_do">
        <table  class="table table-bordered table-hover table-striped table-top">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>组名</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <foreach name='vlist' item='v'>
                    <tr  data-id="{$v.id}">
                        <td>{$v.id}</td>
                        <td>
                            <a href="{:U('Items/index',array('group' =>$v['name']), '')}" data-toggle="navtab" data-id="items-index" data-title="{$v.remark}">{$v.name} | {$v.remark}</a>
                        </td>
                        <td>
                            <if condition="$v['status']">
                                禁用
                                <else/>
                                正常
                            </if>
                        </td>
                        <td>
                            <a href="{:U('Itemgroup/edit',array('id' =>$v['id']), '')}" data-toggle="navtab" data-id="itemgroup-edit" data-title="编辑{$v.remark}">编辑</a>
                            <a href="{:U('Itemgroup/del',array('id' =>$v['id']))}" data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>
        <!--
        <div class="th" style="clear: both;">{$page}</div>-->
    </form>

</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
    </ul>
</div>